// pages/move/danceList.js
var base = require('../../utils/base.js')
var id = 1
Page({
  data: {
    moveType: [],
    move: []
  },
  onLoad: function (options) {
    // 页面初始化 options为页面跳转所带来的参数
    // id = options.id
    this.loadData()
  },
  loadData: function () {
    var that = this
    base.getJson('Move/moveList', { dance_id: id }, function (data) {
      console.log(data)
      that.setData({
        move: data.move
      })
      // base.getJson('Move/moveList', {id:id}, function (data) {
      //   console.log(data)
      //   that.setData({
      //     moveType:data.dance
      //   })
      // })
    })
  }
})